<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title></title>
</head>
<body onLoad="showPic()">
<script type="text/javascript">
    var a=1;
    function showPic(){
        var box=document.getElementById('box');
        box.innerHTML+='<img src="images/0'+a+'.png"/>';
        a+=1;
        if(a>5){
            a=1;
            setTimeout(function(){
                box.innerHTML="";
            },1000);
        }
        setTimeout(showPic,1000);
    }
</script>
<div id="box"></div>
</body>
</html>
